/**
 * Created by lyt on 2020/7/13.
 */
//用户管理
let app = require("common");

let date = {
  //微信授权
  userInfo: {
    url: "api/cloud2.member.api/wx/userInfo",
    param: "code",
  },

  //发送短信
  sendMessage: {
    // url: 'api/cloud2.public.service/sms/sendMessage2.do',
    // url: "api/cloud2.public.service/sms/sendMessageLogin",
    url: "api/cloud2.public.service/sms/third/sendMessageLogin",
    param: "phone,code",
    type: "GET",
  },

  // 登录获取到openid 后台绑定用户关系 发放红包
  saveWxLog: {
    url: "api/cloud2.member.api/wx/saveWxLog",
    param: "code,userToken,strUserId,company",
  },

  // 判断是否需要 静默授权
  isSaveWxLog: {
    url: "api/cloud2.member.api/wx/isSaveWxLog",
    param: "userToken,strUserId,company",
  },
  // gs /api/cloud2.member.api/member/userInfo/third/checkPhoneLogin
  // 第三方登录 绑定用户关系
  checkPhoneLogin: {
    url: "api/cloud2.member.api/member/userInfo/third/checkPhoneLogin",
    param: "token,company",
  },
  // 手机注册登录 company: weizan
  phoneLogin: {
    url: "api/cloud2.member.api/member/userInfo/third/phoneLogin",
    param: "phone,checkCode,company",
  },
};
module.exports = app.moduleFactory(date);
